#ifndef UDPSERVER_H
#define UDPSERVER_H

#include <QMainWindow>
#include <QUdpSocket>
namespace Ui {
    class UdpServer;
}

class UdpServer : public QMainWindow
{
    Q_OBJECT

public:
    explicit UdpServer(QWidget *parent = 0);
    ~UdpServer();
private slots:
    void recv();
    void on_pushButton_clicked();

private:
    Ui::UdpServer *ui;
    QUdpSocket *serverudp;
};

#endif // UDPSERVER_H
